package com.z.service.impl;

import com.z.dao.impl.TypeDaoImpl;
import com.z.pojo.Type;
import com.z.service.TypeService;

import java.sql.SQLException;
import java.util.List;

/**
 * @author 张福兴
 * date 2021/9/2
 */
public class TypeServiceImpl implements TypeService {

    private final TypeDaoImpl typeDao = new TypeDaoImpl();
    @Override
    public List<Type> allType() {
        List<Type> list = null;
        try {
            list = typeDao.selectAllType();
        } catch (SQLException e) {
            e.printStackTrace();
        }
        return list;
    }
}
